import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);
import store from './store'
Vue.prototype.$store = store
import intelligent from '@/components/intelligent/intelligent.vue';
// 导入并挂载全局的分享方法
import share from '@/common/share.js'
Vue.mixin(share)

const app = new Vue({
  ...App,
  store,
  components: {
	  App,
  intelligent
   }
})
import { VUE_APP_API_URL } from '@/config'
Vue.prototype.$VUE_APP_API_URL = VUE_APP_API_URL
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)

import webSocket from '@/common/websocket.js'
webSocket.ws.that = app
Vue.prototype.ws = webSocket.ws

app.$mount()